package com.sun.stringescapeutils;

import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;

import java.io.IOException;

public class BlogTestTest {
    public static void main(String[] args) throws IOException {
        String url = "http://localhost:8888/test";
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder()
                .url(url)
                .addHeader("Authorization","eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MzAwOTMxMDcsInVzZXJJZCI6MSwiaWF0IjoxNjI5MjA0MDc1fQ.EFm8GlwvJWPwD2pkoi5nTQqOIFIOhsmLt7lfg0-SN1M")
                .build();
        Response response = client.newCall(request).execute();
        String result = response.body().string();
        System.out.println(result);
    }
}
